﻿using OperationPlugins.Validators.DataAnnotations;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TimeProject.Engine.DbModels
{
    [Table("UserOption")]
    public class UserOption : EntityBase
    {
        /// <summary>
        /// The user id.
        /// </summary>
        [ForeignKey("User")]
        public int UserId { get; set; }

        /// <summary>
        /// The user.
        /// </summary>
        public virtual User User { set; get; }

        /// <summary>
        /// The option key.
        /// </summary>
        [Required]
        public string Key { get; set; }

        /// <summary>
        /// The option value as boolean.
        /// </summary>
        public bool BooleanValue { get; set; }

    }
}
